#ifndef _drv_timer_h
#define _drv_timer_h

#include "sys.h"
#include "led.h"

/* 200M / 4k - 1 = 20000-1 */
#define TIMER3_PWM_CYCLE	(192000/5  - 1)	
#define TIMER8_PWM_CYCLE	(192000/5  - 1)	


#define rgb_pwm_buffer  timer1_pwm_buffer

void set_timer3_oc_val(u32 val, u8 c);
void timer3_oc_int(void);
void timer10_base_init(void);

void timer1_dma_transfer_ctrl(uint16_t s);
void change_color_to_bit(uint32_t rgb_color,uint16_t* bit);
void set_all_led_same_color(uint32_t rgb_color, uint16_t rgb_length);
void set_rgb_led_same_color(uint32_t rgb_color, uint16_t rgb_length);

#endif


